package com.sihan.framework.etm.dto;

import java.io.Serializable;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import com.framework.util.lang.Regex;
import lombok.Data;

@Data
public class RoleUpdateDTO implements Serializable {

  private static final long serialVersionUID = -4686371628933345968L;

  /**
   * 角色Id
   */
  @NotNull(message = "id")
  private String id;

  /**
   * 角色名
   */
  @Pattern(regexp = Regex.CHINESE, message = "{role.name}")
  private String name;
  
  /**
   * 备注
   */
  private String remarks;

  @Override
  public String toString() {
    return "角色id[" + id +
            "]、角色名称[" + name +
            "]。";
  }
}
